<% if logged_in? %>
   <%= link_to "Edit", :action => "edit", :id => post %>&nbsp;
   <%= link_to "Delete", {:action => "destroy", :id => post}, :confirm => "Are you sure?", :method => :delete %>
   
<% end %>
